package com.wechatapp.mengyao.poetry.dto;

import com.wechatapp.mengyao.poetry.entity.UserInfo;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author yanghuaxu
 * @date 2025/5/20 20:21
 */
@Data
public class LoginRequestDTO {

    @NotNull(message = "用户信息不能为空")
    private UserInfoDTO userInfo;

    @NotBlank(message = "微信返回的iv信息不能为空")
    private String iv;

    @NotBlank(message = "微信返回的加密信息不能为空")
    private String encryptedData;

    @NotBlank(message = "微信返回的code不能为空")
    private String code;

}
